$(function () {
    $(".nav.nav-pills li:not(#search)").click(function () {
        $(this).addClass("active").siblings().removeClass("active");
    })
});
$('#mainLogin').click(function () {
    layer.msg("aa",1000,'')
});
$('#mainRegister').click(function () {
    layer
});
$('#Login').click(function () {
    var username=$('#mainName').val();
    var password=$('#mainPassword').val();
    $.ajax({
        url: _server + "/Test",
        type: 'post',
        dataType: 'json',
        data: {"seqNo":$("#seqNo").val(),"appId": $("#appId").val()},
        xhrFields: {
            withCredentials: true
        },
        crossDomain: true,
        success: function (result) {
            SetValue("gNo",result.data);
        },
        error: function (result) {
            layer.msg(result.message,{time:1500});
        }
    });
})